package com.bimbimbip.explorer;

public class IconStore {
	public static Integer getIconByExtendsion(String ext) {
		String extendsion = ext.toLowerCase();

		if (extendsion.endsWith("folder"))
			return R.drawable.folder;
		if (extendsion.endsWith("zip"))
			return R.drawable.rar;
		if (extendsion.endsWith("mp3"))
			return R.drawable.audio;
		if (extendsion.endsWith("jpg"))
			return R.drawable.picture;
		if (extendsion.endsWith("bmp"))
			return R.drawable.picture;
		if (extendsion.endsWith("png"))
			return R.drawable.picture;
		if (extendsion.endsWith("gif"))
			return R.drawable.picture;
		if (extendsion.endsWith("sdcard"))
			return R.drawable.sdcard;
		if (extendsion.endsWith("root"))
			return R.drawable.system_file;
		if (extendsion.endsWith("audio"))
			return R.drawable.folder_audio;
		if (extendsion.endsWith("ogg"))
			return R.drawable.audio;
		if (extendsion.endsWith("cache"))
			return R.drawable.system_file;
		if (extendsion.endsWith("data"))
			return R.drawable.data;
		if (extendsion.endsWith("image"))
			return R.drawable.pictures;
		if (extendsion.endsWith("system"))
			return R.drawable.system_file;
		if (extendsion.endsWith("video"))
			return R.drawable.video;
		if (extendsion.endsWith("empty"))
			return R.drawable.data_lock;
		if (extendsion.endsWith("apk"))
			return R.drawable.android;
		if (extendsion.endsWith("ttf"))
			return R.drawable.font;
		else
			return R.drawable.unknown;
	}
}